import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/AddMember',
      name: 'AddMember',
      component: () => import('../views/Members/AddMember.vue'),
    },
    {
      path: '/ShowMember',
      name: 'ShowMember',
      component: () => import('../views/Members/ShowMember.vue'),
    },
    {
      path: '/UpdateMember/:id',
      name: 'UpdateMember',
      component: () => import('../views/Members/UpdateMember.vue'),
    },
    {
      path: '/GradeAdd',
      name: 'GradeAdd',
      component: () => import('../views/Grade/GradeAdd.vue'),
    },
    {
      path: '/GradeShow',
      name: 'GradeShow',
      component: () => import('../views/Grade/GradeShow.vue'),
    },
    {
      path: '/GradeUpdate/:id',
      name: 'GradeUpdate',
      component: () => import('../views/Grade/GradeUpdate.vue'),
    },
  ],
})

export default router
